package com.olocat.cjx.nsims.dao

import com.olocat.cjx.nsims.pojo.cache.LoginCache
import org.springframework.data.jpa.repository.JpaRepository
import javax.transaction.Transactional

interface LoginCacheRepository : JpaRepository<LoginCache, String> {
    fun getByUserToken(userToken: String): LoginCache?
    @Transactional
    fun removeByUserToken(userToken: String)
    fun existsByUserId(userId: String): Boolean
}